<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ page import="net.comm.common.ValueMaping" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>会员系统资料列表</TITLE>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adgloab.css"/>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adstyle.css" />
	<SCRIPT src="${cpath}/js/global.js" type=text/javascript></SCRIPT>
	<SCRIPT src="${cpath}/js/location.js" type=text/javascript></SCRIPT>
	<SCRIPT src="${cpath}/js/location_array.js" type=text/javascript></SCRIPT>
</head>
<body>
<script> 
	//转页面
	var usertype = '${usertype}';
	if(usertype != "9"){
//		parent.window.location.replace("${cpath}/admin/login.jsp"); 
	}
</script>
		<DIV id=admin>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

			<form action="${cpath}/sysinfo.do" name="theForm"  method="post" enctype="multipart/form-data" >
			<div class='subtop' >
				<p><a href="#"><img src="${cpath}/images/slogo.png" ></a></p>
				<dl >
					<dd class="info"><span>会员ID：</span>
					<input type="text" name='userID' value='${theForm.userID}' maxlength="100" class="long"/>
					</dd>
				</dl>
				<div class='fun'>
					<li><a href="javascript:doConfirm('adlist','');">查&nbsp;&nbsp;询</a></li>
				</div>
			</div>
			<hr/>
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
				<table class="info">
					<thead>
						<tr align=left>
							<th width="5%">会员ID</th>
							<th width="7%">用户名</th>
							<th width="10%">积分</th>
							<th width="20%">积分修改</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="sysinfo" items="${sysinfolist}" varStatus="status">   
						<tr  <c:if test="${status.count%2!=0}"> bgcolor='#F2F3F6' </c:if> align=left>
							<td >${sysinfo.userID}</td>
							<td >${myfn:getUserNick(sysinfo.userID)}</td>
							<td >${sysinfo.integral}</td>
							<td >
							<input type="text" name='${sysinfo.userID}integral' value='' maxlength="10" style="width:60px;"/>
							<a href="javascript:doConfirm('update','${sysinfo.userID}');">确认</a>&nbsp;
						</tr>
						</c:forEach> 
						<tr align="left">   
						 <td colspan="5">
							<!-- 分页主键 formName字段当前的form名称 -->
							<%@ include file="/jsplib/page.jsp" %>
							<!--隐藏域-->
							<input type="hidden" name='action' value='adlist'/>
							<input type="hidden" name='integral' value=''/>
						 </td>
						</tr>  
					</tbody>
				</table>
			</div><!-- whole }}} -->			
			</form>
			</DIV><!-- content }}} -->
		</DIV><!-- profile_mid }}} -->
	</DIV><!-- admin end }}} -->

</body>
</html>
<!---->
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm(act,id)
	{
		var form = document.theForm;

		var action = form['action'];
		var userID = form['userID'];
		var idintegral = form[id + 'integral'];
		var integral = form['integral'];

		action.value = act;
		if(id != ""){		
			userID.value = id;
		}
		integral.value = idintegral.value;

		form.submit();
	}

</script>
